import Layout from '@/layout';

const orderRouter = {
  path: '/order',
  component: Layout,
  redirect: '/order/index',
  name: 'Order',
  alwaysShow: true,
  meta: {
    title: '订单',
    icon: 'clipboard',
  },
  children: [
    {
      path: 'halykOrder',
      component: () => import('@/views/order/halykOrder'),
      name: 'halykOrder',
      meta: { title: 'Halyk订单' },
    },
    {
      path: 'list',
      component: () => import('@/views/order/index'),
      name: 'OrderIndex',
      meta: { title: '订单' },
    },
    {
      path: 'refund',
      component: () => import('@/views/order/refund'),
      name: 'refund',
      meta: { title: '退款单' },
    },
    {
      path: 'firstOrderChange',
      component: () => import('@/views/order/firstOrderChange'),
      name: 'firstOrderChange',
      meta: { title: '头程换单' },
    },
    {
      path: 'orderChange',
      component: () => import('@/views/order/orderChange'),
      name: 'orderChange',
      meta: { title: '无头程换单' },
    },
    {
      path: 'orderPickup',
      component: () => import('@/views/order/orderPickup'),
      name: 'orderPickup',
      meta: { title: '自提单' },
    },
  ],
};

export default orderRouter;
